from fastapi import FastAPI, APIRouter

from app.api.routes import test, items

# from app.core.config import settings

api_router = APIRouter()


def configure_router(app: FastAPI, prefix='/api'):
    """配置前台路由"""

    # front
    app.include_router(test.router, tags=["test"])
    app.include_router(items.router, prefix=prefix, tags=["api items"])
